package xyz.ddlnt.model.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author ZZULI_SE 210910
 * @data 2025/5/26 21:46
 */
@Schema( description = "私信人员列表")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class PrivateMessageListVO {
    @Schema(description = "id")
    private Long id;
    @Schema(description = "用户 id")
    private Long userId;
    @Schema(description = "私信目标 id")
    private Long receiverId;

    @Schema(description = "用户名")
    private String username;
    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "发送方状态：0 正常/初始，1 未读，2 已读，3 已屏蔽，4 已删除")
    private Integer senderStatus;
    @Schema(description = "接收方状态：-1 未知，0 未读，1 已读，2 已屏蔽，3 已删除")
    private Integer receiverStatus;

    @Schema(description = "'最后接收的消息内容'")
    private String  lastReceiverMsgContent;
    @Schema(description = "'未读消息数'")
    private Integer unreadCount;
    @Schema(description = "'用户最后一次发送/接收消息时间'")
    private LocalDateTime lastMessageTime;

    @Schema(description = "'用户消息版本号'")
    private Integer messageVersion;
}
